#include<stdio.h>
int main()
{
	int i,n,num,sum;
	scanf("%d\n",&n);
	sum=0;
	
	for(i=1;i<=n;i++)
	{
		scanf("%d",&num);
		sum=num+sum;
	}
	printf("%d",sum);
	
	return 0;
}
 
